package com.eastfair.questionnaire.dto;

import com.eastfair.core.base.entity.Entity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * <p>
 * 实体类
 * 问题
 * </p>
 *
 * @author yuwx
 * @since 2021-08-18
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@ApiModel(value = "QuestionDTO", description = "问题")
public class QuestionQuery implements Serializable {

    private static final long serialVersionUID = 1L;
    public interface validateBase {}
    public interface validateGet{}
    public interface validateGetByQuestionnaire{}

    /**
     * 项目ID
     */
    @ApiModelProperty(value = "项目ID")
//    @NotNull(groups = {QuestionQuery.validateBase.class}, message =  "projectId")
    private Long projectId;
    /**
     * 问卷Id
     */
    @ApiModelProperty(value = "问卷Id")
    @NotNull(groups = {QuestionQuery.validateGetByQuestionnaire.class}, message =  "问卷Id")
    private Long questionnaireId;

    /**
     * 问题id
     */
    @ApiModelProperty(value = "id")
    @NotNull(groups = {QuestionQuery.validateGet.class}, message =  "id")
    private Long id;
}
